<%@ page import="com.confidena.GameCircle" %>



<div class="fieldcontain ${hasErrors(bean: gameCircleInstance, field: 'personGameCreated', 'error')} ">
	<label for="personGameCreated">
		<g:message code="gameCircle.personGameCreated.label" default="Person Game Created" />
		
	</label>
	<g:select id="personGameCreated" name="personGameCreated.id" from="${com.confidena.PersonGame.list()}" optionKey="id" value="${gameCircleInstance?.personGameCreated?.id}" class="many-to-one" noSelection="['null': '']"/>
</div>

<div class="fieldcontain ${hasErrors(bean: gameCircleInstance, field: 'person', 'error')} ">
	<label for="person">
		<g:message code="gameCircle.person.label" default="Person" />
		
	</label>
	<g:select id="person" name="person.id" from="${com.confidena.security.Person.list()}" optionKey="id" value="${gameCircleInstance?.person?.id}" class="many-to-one" noSelection="['null': '']"/>
</div>

<div class="fieldcontain ${hasErrors(bean: gameCircleInstance, field: 'dateEvent', 'error')} required">
	<label for="dateEvent">
		<g:message code="gameCircle.dateEvent.label" default="Date Event" />
		<span class="required-indicator">*</span>
	</label>
	<g:datePicker name="dateEvent" precision="day"  value="${gameCircleInstance?.dateEvent}"  />
</div>

<div class="fieldcontain ${hasErrors(bean: gameCircleInstance, field: 'email', 'error')} ">
	<label for="email">
		<g:message code="gameCircle.email.label" default="Email" />
		
	</label>
	<g:textField name="email" value="${gameCircleInstance?.email}"/>
</div>

<div class="fieldcontain ${hasErrors(bean: gameCircleInstance, field: 'personGame', 'error')} required">
	<label for="personGame">
		<g:message code="gameCircle.personGame.label" default="Person Game" />
		<span class="required-indicator">*</span>
	</label>
	<g:select id="personGame" name="personGame.id" from="${com.confidena.PersonGame.list()}" optionKey="id" required="" value="${gameCircleInstance?.personGame?.id}" class="many-to-one"/>
</div>

<div class="fieldcontain ${hasErrors(bean: gameCircleInstance, field: 'state', 'error')} ">
	<label for="state">
		<g:message code="gameCircle.state.label" default="State" />
		
	</label>
	<g:textField name="state" value="${gameCircleInstance?.state}"/>
</div>

